﻿using CodeGenBL.Dto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace CodeGenBL
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IProjectBL" in both code and config file together.
    [ServiceContract]
    public interface IProjectBL
    {
        [OperationContract]
        ActionResultDto<int> AddProject(ProjectDto projectDto);
        [OperationContract]
        ActionResultDto<int> AddUser(AddUserDto userDto);
        [OperationContract]
        ActionResultDto<List<ProjectHeaderDto>> GetProjectNameByUserId(UserPkDto userPKDto);
        [OperationContract]
        ActionResultDto<UserDto> Login(LoginDto loginDto);
        [OperationContract]
        ActionResultDto<ProjectDto> GetProject(ProjectPKDto ptojectPkDto);
    }
}
